﻿using NetEasyMusic.Lib.Models;
using Newtonsoft.Json.Linq;

namespace NetEasyMusic.Lib.Recommend;

public class VideoRecommend
{
    public VideoRecommend(JToken token)
    {
        Name = token["msg"]?.ToObject<string>()!;
        Items = token["datas"]?.Select(x => new VideoModel(x)).ToArray() ?? [];
    }

    public string Name { get; }
    public VideoModel[] Items { get; }
}